#ifndef LIGHT_H
#define LIGHT_H

#include "Vec3.h"
#include <stdlib.h>
#include <GL\glut.h>

class Light
{
public:
	Light()
	{
		//From pedro's code and Opengl book
		//Takes the position of glLight0
		static int ID = 0x4000;
		//Creates an ID tag
		m_id = ID;
		
		//iterates the id
		ID++;

		//enables that id
		glEnable(m_id);
	}
	//Sets type of light
	void SetPositionalLight(Vec3f Position);
	void SetDirectionalLight(Vec3f TheDirection);
	void SetSpotLight(Vec3f Pos, Vec3f Direction, float Angle);
	void SetAmbient(float R,float G, float B, float A);
	void SetDiffuse(float R,float G, float B, float A);
	void SetSpecular(float R,float G, float B, float A);
	void EnableLight(int LightNum);
	void LightOn();
	void LightOff();
	int NumLights();
	void MoveLight(Vec3f Pos);

private:

	Vec3f m_dir;
	Vec3f m_pos;
	Vec3f m_amb;
	float m_ambA;
	Vec3f m_dif;
	float m_difA;
	Vec3f m_spe;
	float m_speA;
	float m_angle;
	//int LightNum;
	int m_lightType;
	int m_id;




};
	


#endif

